import Home from '../views/Home.vue'

const routes = [
  {
    path: '/',
    name: 'Login',
    meta: {
      title: '登陆'
    },
    component: () => import('@/views/Login.vue')
  },
  {
    path: '/layout',
    name: 'Layout',
    meta: {
      title: '主页'
    },
    component: () => import('@/views/Layout.vue'),
    children: [
      {
        path: '',
        meta: {
          title: '首页'
        },
        component: Home
      },
      {
        path: '/home',
        name: 'Home',
        meta: {
          title: '首页'
        },
        component: Home
      },
      {
        path: '/orderList',
        name: 'OrderList',
        meta: {
          title: '订单列表'
        },
        component: () => import(/* webpackChunkName: "layout" */ '@/views/OrderList.vue')
      },
      {
        path: '/priceList',
        name: 'PriceList',
        meta: {
          title: '价格列表'
        },
        component: () => import(/* webpackChunkName: "layout" */ '@/views/PriceList.vue')
      }
    ]
  },
  {
    path: '/about',
    name: 'About',
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  }
]

export default routes
